<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('gift/index')}">礼物列表</a></li>
			<li><a href="{:url('gift/add')}">礼物添加</a></li>
			<li class="active"><a>下发记录</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('gift/annal')}">
			明星姓名:
			<input type="text" class="form-control" name="s_name" value="{$s_name}" placeholder="请输入明星姓名">
			<input type="hidden" name="id" value="{$glid}">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:url('gift/annal',['id'=>$glid])}">清空</a>
		</form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>姓名</th>
					<th>下发数量</th>
					<th>使用数量</th>
					<th>下发时间</th>
					<th>最后使用</th>
					<th>备注说明</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="gift" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.s_name}</td>
					<td>{$vo.g_amount}</td>
					<td>{$vo.g_use}</td>
					<td>{$vo.g_createtime}</td>
					<td>{$vo.g_lasttime}</td>
					<td>{$vo.g_description}</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>